using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.ProcessFlow;
using emp.BLL;
using emp.Model;

public partial class crm_quest_question_modify : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.Params["QSD_ID"] != null && Request.Params["QSA_NUMBER"] != null)
            {
                //Quest quest = new Quest();
                //IList ilist = quest.getQuestAnswerOptionList(Int32.Parse(Request.Params["QSD_ID"]), Int32.Parse(Request.Params["QSA_NUMBER"]));
                //QuestAnswerOptionInfo qAnswerInfo = (QuestAnswerOptionInfo)ilist[0];

               
                

                //Quest quest = new Quest();
                //IList ilist = quest.getQuestAnswerOptionList(Int32.Parse(Request.Params["QSD_ID"]));
                //QuestAnswerOptionInfo qAnswerInfo = (QuestAnswerOptionInfo)ilist[0];

                //txtQsaAnswer_Name.Text    = qAnswerInfo.QSA_ANSWER_NAME;
                //txtQsaNumber.Text         = Convert .ToString (qAnswerInfo.QSA_NUMBER).ToString ();
                //txtQsaAnswerValue.Text    = qAnswerInfo.QSA_ANSWER_VALUE;
                //txtQsaReturnValue.Text    = Convert .ToString ( qAnswerInfo.QSA_RETURN_VALUE).ToString ();
            }
        }
    }

    protected void imbSave_Click(object sender, ImageClickEventArgs e)
    {
        
        int qsa_QSD_ID           = int.Parse(Request .Params ["QSD_ID"]);
        string qsaAnswer_Name    = this.txtQsaAnswer_Name.Text;
        int qsaNumber            = Int32 .Parse ( this.txtQsaNumber.Text);
        string qsaAnswerValue    = this.txtQsaAnswerValue.Text;
        int qsaReturnValue       = Int32.Parse(this.txtQsaReturnValue .Text);
        QuestController questController = new QuestController();
        //questController.update_std_answer_option(qsa_QSD_ID, qsaNumber, qsaAnswer_Name, qsaAnswerValue, qsaReturnValue);
        
    }
}
